<?php

/* #INFO############################################
Author: Igor Feghali
(c) 2003-2006, ifeghali@interveritas.net
----------------------------------------------------
This file is part of Power 2 Protect Class
----------------------------------------------------
################################################# */

/* #DESCRIPTION#####################################
Contains the variables needed to be set for personal
configuration and MySQL conection parameters.
Connects to MySQL database nd starts power2protect
session.
################################################# */

// #CONFIGURATION VARS: SET THEM TO YOUR VALUES#####
$mysql_server = "localhost"; // mysql server
$mysql_user = "root"; // mysql user
$mysql_pass = "root"; //mysql password for user
$mysql_db = "turismo"; // mysql database to use

$table_user = "user"; // name of the table witch contains user login,code and password
$table_usertype = "usertype"; // name of the table witch contains user types
$table_perm = "permissions"; // name of the table witch contains website permissions

$location_accessdenied = "http://invoice/error_access.php"; // access denied page
$location_loginerror = "http://invoice/index.php"; // invalid login page
$location_logout = "http://invoice/index.php"; // the user will be redirected to that page after logout

$session_name = "power2protect"; // anything you want
// ################################################

// #CODE############################################
if (is_null($location_accessdenied))
	$location_accessdenied = $location_accessdenied_default;

$con = mysql_connect($mysql_server,$mysql_user,$mysql_pass);
$db = mysql_select_db($mysql_db);

session_name("power2protect");  
session_start();
// #################################################

?>
